package com.gthncz.mbg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.gthncz.mbg.pojo.AuthRoleUser;

@Mapper
@Repository
public interface AuthRoleUserMapper {	
	
	/**
	 * 根据 用户Id 查找授权的用户
	 * @return
	 */
	public AuthRoleUser findByUserId(Long id);
	
	/**
	 * 根据 用户名 查找授权用户
	 * @param username
	 * @return
	 */
	public AuthRoleUser findByUsername(String username);
	
	/**
	 * 列出全部用户
	 * @return
	 */
	public List<AuthRoleUser> listUsers();

}
